package com.hpf.community.pojo;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 社团表实体类  与数据库一一对应,请勿轻易修改
 * </p>
 *
 * @author huangpengfei
 * @version 2020年04月04日---22:57:14
 * @description
 */
@Data
public class Community extends Model<Community> {

    private static final long serialVersionUID = 1L;

    public static final String ID = "ID";

    public static final String NAME = "NAME";

    public static final String LV = "LV";

    public static final String DESCRIPTION = "DESCRIPTION";

    public static final String FACULTY = "FACULTY";

    public static final String GUIDE_TEACHER = "GUIDE_TEACHER";

    public static final String TYPE = "TYPE";

    public static final String CREATE_DATETIME = "CREATE_DATETIME";

    public static final String CREATE_USERID = "CREATE_USERID";

    public static final String STATUS = "STATUS";

    public static final String MODIFY_USERID = "MODIFY_USERID";

    public static final String MODIFY_DATETIME = "MODIFY_DATETIME";

    public static final String IS_DELETE = "IS_DELETE";


    @TableId("ID")
    private String id;

    @TableField("NAME")
    private String name;

    @TableField("LV")
    private String lv;

    @TableField("DESCRIPTION")
    private String description;

    @TableField("FACULTY")
    private String faculty;

    @TableField("GUIDE_TEACHER")
    private String guideTeacher;

    @TableField("TYPE")
    private String type;

    @TableField("CREATE_DATETIME")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createDatetime;

    @TableField("CREATE_USERID")
    private String createUserid;

    @TableField("STATUS")
    private String status;

    @TableField("MODIFY_USERID")
    private String modifyUserid;

    @TableField("IS_DELETE")
    private String isDelete;

    @TableField("MODIFY_DATETIME")
    private Date modifyDatetime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }


}
